layui.use(['layer', 'form', 'admin', 'ax'], function () {
    var $ = layui.jquery;
    var layer = layui.layer;
    var form = layui.form;
    var admin = layui.admin;
    var $ax = layui.ax;

    // 让当前iframe弹层高度适应
    admin.iframeAuto();

    $('#btnNewVersion').click(function () {
        var version="2";
        localStorage.setItem('version',version);
        parent.location.href = Feng.ctxPath + "/?version=" + version;
    });

    $('#btnOldVersion').click(function () {
        var version="1";
        localStorage.setItem('version',version);
        parent.location.href = Feng.ctxPath + "/?version=" + version;
    });
});